﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace FlickrGrabbr.Model
{
    public enum FlickrPhotoFormat
    {
        FlickrPhotoFormatSquare = 1,
        FlickrPhotoFormatLarge = 2,
        FlickrPhotoFormatOriginal = 64
    }

    public class Photo
    {
        public string ID { get; set; }
        public string Title { get; set; }
        public string Description { get; set; }
        public string Farm { get; set; }
        public string Server { get; set; }
        public string Secret { get; set; }
        public string OriginalSecret { get; set; }
        public string ThumbnailUrl
        {
            get
            {
                return String.Format(@"http://farm{0}.static.flickr.com/{1}/{2}_{3}_{4}.{5}", Farm, Server, ID, Secret, "s", "jpg");
            }
        }
        public string LargeUrl
        {
            get
            {
                return String.Format(@"http://farm{0}.static.flickr.com/{1}/{2}_{3}_{4}.{5}", Farm, Server, ID, Secret, "b", "jpg");
            }
        }
    }
}
